package com.gscitysfy.cus.drain.modules.resource.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cus.drain.modules.resource.dto.ResourceTeamDto;
import com.gscitysfy.cus.drain.modules.resource.entity.ResourceTeam;
import com.gscitysfy.cus.drain.modules.resource.vo.ResourceTeamQuery;

import java.util.List;

/**
 * <p>
 * 防汛队伍表 服务类
 * </p>
 *
 * @author Administrator
 * @since 2022-10-23 16:30:26
 */
public interface IResourceTeamService extends IService<ResourceTeam> {
    /**
     * 条件分页
     *
     * @param page
     * @param query
     * @return
     */
    IPage<ResourceTeamDto> fetchPage(Page page, ResourceTeamQuery query);

    /**
     * 列表
     *
     * @param dangerSituationId
     * @return
     */
    List<ResourceTeamDto> list(Long dangerSituationId);

    /**
     * 获取详情
     *
     * @param cmKid
     * @return
     */
    ResourceTeamDto getById(Long cmKid);

    /**
     * GIS列表
     *
     * @return
     */
    List<ResourceTeamDto> fetchGis();

    /**
     * id集合查询
     *
     * @param idList
     * @return
     */
    List<ResourceTeamDto> fetchInIdList(List<Long> idList);

    /**
     * 新增或修改
     *
     * @param dto
     * @return
     */
    Boolean saveOrUpdate(ResourceTeamDto dto);

    /**
     * 删除
     *
     * @param idList
     * @return
     */
    Boolean delete(List<Long> idList);
}
